home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / diff / diff_20b.zoo / diffs < prev    next >
Encoding:
Text File  |  1992-09-22  |  9.9 KB  |  387 lines

  1. diff -r -u --new-file diff-2.0/cmp.c diff-20.st/cmp.c
  2. --- diff-2.0/cmp.c    Sat Jul 11 08:58:06 1992
  3. +++ diff-20.st/cmp.c    Fri Sep 18 20:59:22 1992
  4. @@ -75,6 +75,11 @@
  5.  usage (reason)
  6.       char *reason;
  7.  {
  8. +#ifdef atarist
  9. +  struct option *ptr;
  10. +  int i;
  11. +#endif
  12. +
  13.    if (reason != NULL)
  14.      fprintf (stderr, "%s: %s\n", program_name, reason);
  15.  
  16. @@ -82,6 +87,27 @@
  17.  Usage: %s [-cls] [--print-chars] [--verbose] [--silent] [--quiet]\n\
  18.         from-file [to-file]\n", program_name);
  19.  
  20. +#ifdef atarist
  21. +  ptr = &long_options[0];
  22. +  i = 0;
  23. +  fprintf (stderr, "Equivalent short and long options:\n");
  24. +  while (ptr->name)
  25. +    {
  26. +      if (ptr->val > 0x20 && ptr->val < 0x7f)
  27. +    {
  28. +      fprintf (stderr, " %c<=>%-21.21s", (char)(ptr->val), ptr->name);
  29. +      i++; 
  30. +    }
  31. +      ptr++;
  32. +      if (i == 3)
  33. +    {
  34. +      i = 0;
  35. +      fputc ('\n', stderr);
  36. +    }
  37. +    }
  38. +  fputc ('\n', stderr);
  39. +#endif
  40. +
  41.    exit (2);
  42.  }
  43.  
  44. @@ -94,6 +120,10 @@
  45.    struct stat stat_buf1, stat_buf2;
  46.  
  47.    program_name = argv[0];
  48. +
  49. +#ifdef atarist
  50. +  _binmode (1);
  51. +#endif
  52.  
  53.    /* If an argument is omitted, default to the standard input.  */
  54.  
  55. diff -r -u --new-file diff-2.0/diff.c diff-20.st/diff.c
  56. --- diff-2.0/diff.c    Thu Sep 17 16:14:48 1992
  57. +++ diff-20.st/diff.c    Fri Sep 18 20:11:08 1992
  58. @@ -213,6 +213,10 @@
  59.  
  60.    program = argv[0];
  61.  
  62. +#ifdef atarist
  63. +  _binmode (1);
  64. +#endif
  65. +
  66.    /* Do our initializations. */
  67.    output_style = OUTPUT_NORMAL;
  68.    always_text_flag = FALSE;
  69. @@ -557,6 +561,11 @@
  70.  void
  71.  usage ()
  72.  {
  73. +#ifdef atarist
  74. +  struct option *ptr;
  75. +  int i;
  76. +#endif
  77. +
  78.    fprintf (stderr, "Usage: %s [options] from-file to-file\n", program);
  79.    fprintf (stderr, "Options:\n\
  80.         [-abBcdefhHilnNpPqrstTuvwy] [-C lines] [-D symbol] [-F regexp]\n\
  81. @@ -574,6 +583,28 @@
  82.    fprintf (stderr, "\
  83.         [--ignore-all-space] [--side-by-side] [--unified[=lines]]\n\
  84.         [--left-column] [--suppress-common-lines] [--sdiff-merge-assist]\n");
  85. +
  86. +#ifdef atarist
  87. +  ptr = &longopts[0];
  88. +  i = 0;
  89. +  fprintf (stderr, "Equivalent short and long options:\n");
  90. +  while (ptr->name)
  91. +    {
  92. +      if (ptr->val > 0x20 && ptr->val < 0x7f)
  93. +    {
  94. +      fprintf (stderr, " %c<=>%-21.21s", (char)(ptr->val), ptr->name);
  95. +      i++; 
  96. +    }
  97. +      ptr++;
  98. +      if (i == 3)
  99. +    {
  100. +      i = 0;
  101. +      fputc ('\n', stderr);
  102. +    }
  103. +    }
  104. +  fputc ('\n', stderr);
  105. +#endif
  106. +
  107.    exit (2);
  108.  } 
  109.  
  110. diff -r -u --new-file diff-2.0/diff3.c diff-20.st/diff3.c
  111. --- diff-2.0/diff3.c    Sun Sep  6 08:30:54 1992
  112. +++ diff-20.st/diff3.c    Fri Sep 18 20:19:14 1992
  113. @@ -236,6 +236,10 @@
  114.  
  115.    argv0 = argv[0];
  116.    
  117. +#ifdef atarist
  118. +  _binmode (1);
  119. +#endif
  120. +
  121.    while ((c = getopt_long (argc, argv, "aeimvx3EXL:", longopts, (int *) 0))
  122.       != EOF)
  123.      {
  124. @@ -371,6 +375,11 @@
  125.  void
  126.  usage ()
  127.  {
  128. +#ifdef atarist
  129. +  struct option *ptr;
  130. +  int i;
  131. +#endif
  132. +
  133.    fprintf (stderr, "\
  134.  Usage: %s [options] my-file older-file your-file\n\
  135.  Options:\n\
  136. @@ -378,6 +387,28 @@
  137.         [--merge] [--show-overlap] [--overlap-only] [--easy-only]\n\
  138.         [--label=my-label [--label=your-label]] [--version]\n\
  139.         Only one of [exEX3] is allowed\n", argv0);
  140. +
  141. +#ifdef atarist
  142. +  ptr = &longopts[0];
  143. +  i = 0;
  144. +  fprintf (stderr, "Equivalent short and long options:\n");
  145. +  while (ptr->name)
  146. +    {
  147. +      if (ptr->val > 0x20 && ptr->val < 0x7f)
  148. +    {
  149. +      fprintf (stderr, " %c<=>%-21.21s", (char)(ptr->val), ptr->name);
  150. +      i++; 
  151. +    }
  152. +      ptr++;
  153. +      if (i == 3)
  154. +    {
  155. +      i = 0;
  156. +      fputc ('\n', stderr);
  157. +    }
  158. +    }
  159. +  fputc ('\n', stderr);
  160. +#endif
  161. +
  162.    exit (2);
  163.  }
  164.  
  165. diff -r -u --new-file diff-2.0/makefile.st diff-20.st/makefile.st
  166. --- diff-2.0/makefile.st
  167. +++ diff-20.st/makefile.st    Tue Sep 22 21:13:04 1992
  168. @@ -0,0 +1,152 @@
  169. +# Generated automatically from Makefile.in by configure.
  170. +# Makefile for GNU DIFF
  171. +# Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
  172. +#
  173. +# This file is part of GNU DIFF.
  174. +#
  175. +# GNU DIFF is free software; you can redistribute it and/or modify
  176. +# it under the terms of the GNU General Public License as published by
  177. +# the Free Software Foundation; either version 2, or (at your option)
  178. +# any later version.
  179. +# 
  180. +# GNU DIFF is distributed in the hope that it will be useful,
  181. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  182. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  183. +# GNU General Public License for more details.
  184. +# 
  185. +# You should have received a copy of the GNU General Public License
  186. +# along with GNU DIFF; see the file COPYING.  If not, write to
  187. +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  188. +
  189. +#### Start of system configuration section. ####
  190. +
  191. +srcdir = .
  192. +VPATH = .
  193. +
  194. +CC = gcc -O
  195. +INSTALL = cp
  196. +INSTALL_PROGRAM = $(INSTALL)
  197. +INSTALL_DATA = $(INSTALL)
  198. +MAKEINFO = makeinfo
  199. +
  200. +# Things you might add to DEFS:
  201. +# -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  202. +# -DHAVE_UNISTD_H    If you have unistd.h.
  203. +# -DUSG            If you have System V/ANSI C string and
  204. +#            memory functions and headers, fcntl.h, and ndir.h.
  205. +# -DDIRENT        If you have dirent.h.
  206. +# -DSYSNDIR        Old Xenix systems (selects sys/ndir.h).
  207. +# -DHAVE_VFORK_H    If you have vfork and it needs vfork.h.
  208. +# -DHAVE_DUP2        If you have dup2 system call.
  209. +# -DHAVE_WAITPID    If you have waitpid system call.
  210. +# -DHAVE_ST_BLKSIZE    If your struct stat has an st_blksize member.
  211. +# -DHAVE_STRERROR    If you have strerror function.
  212. +# -DHAVE_ALLOCA_H    If you have a working alloca.h.
  213. +
  214. +DEFS = -DDIRENT=1 -DHAVE_UNISTD_H=1 -DUSG=1 -DHAVE_DUP2=1 -DHAVE_MEMCHR=1 -Dvfork=fork -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS -DHAVE_ALLOCA_H
  215. +
  216. +CFLAGS = -g
  217. +LDFLAGS = -g -s
  218. +LIBS =
  219. +
  220. +# Some System V machines do not come with libPW.
  221. +# If this is true for you, use the GNU alloca.o here.
  222. +ALLOCA = 
  223. +
  224. +prefix = /dev/e/gnu
  225. +exec_prefix = $(prefix)
  226. +
  227. +# Prefix for each installed program, normally empty or `g'.
  228. +binprefix = 
  229. +
  230. +bindir = $(exec_prefix)/bin
  231. +
  232. +infodir = $(prefix)/info
  233. +
  234. +#### End of system configuration section. ####
  235. +
  236. +#SHELL = /dev/D/mint/bin/sh.ttp
  237. +
  238. +# The source files for all of the programs.
  239. +srcs=diff.c analyze.c io.c context.c ed.c normal.c ifdef.c util.c dir.c \
  240. +    version.c diff.h regex.c regex.h side.c system.h limits.h \
  241. +    diff3.c sdiff.c cmp.c error.c xmalloc.c getopt.c getopt1.c getopt.h \
  242. +    fnmatch.c fnmatch.h alloca.c
  243. +# Object files for diff only.
  244. +objs=diff.o analyze.o io.o context.o \
  245. +     ed.o normal.o util.o dir.o fnmatch.o \
  246. +     regex.o side.o ifdef.o version.o \
  247. +     getopt.o getopt1.o $(ALLOCA)
  248. +distfiles = $(srcs) README INSTALL NEWS diagmeet.note Makefile.in configure \
  249. +    configure.in COPYING ChangeLog diff.texi diff.info* texinfo.tex
  250. +
  251. +all: diff.ttp diff3.ttp sdiff.ttp cmp.ttp diff.info
  252. +
  253. +.c.o:
  254. +    $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) $<
  255. +
  256. +diff.ttp: $(objs)
  257. +    $(CC) -o $@ $(LDFLAGS) $(objs) $(LIBS)
  258. +
  259. +diff3.ttp: diff3.o getopt.o getopt1.o version.o $(ALLOCA)
  260. +    $(CC) -o $@ $(LDFLAGS) diff3.o getopt.o getopt1.o version.o $(ALLOCA) $(LIBS)
  261. +
  262. +sdiff.ttp: sdiff.o getopt.o getopt1.o version.o $(ALLOCA)
  263. +    $(CC) -o $@ $(LDFLAGS) sdiff.o getopt.o getopt1.o version.o $(ALLOCA) $(LIBS)
  264. +
  265. +cmp.ttp: cmp.o getopt.o getopt1.o error.o xmalloc.o $(ALLOCA)
  266. +    $(CC) -o $@ $(LDFLAGS) cmp.o getopt.o getopt1.o error.o xmalloc.o $(ALLOCA) $(LIBS)
  267. +
  268. +diff.info: diff.texi
  269. +    $(MAKEINFO) $(srcdir)/diff.texi
  270. +
  271. +$(objs): diff.h system.h
  272. +cmp.o diff3.o sdiff.o: system.h
  273. +context.o diff.o regex.o: regex.h
  274. +cmp.o diff.o diff3.o sdiff.o getopt.o getopt1.o: getopt.h
  275. +diff.o fnmatch.o: fnmatch.h
  276. +
  277. +diff3.o: diff3.c
  278. +    $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -DDIFF_PROGRAM=@"diff.ttp@" $(srcdir)/diff3.c
  279. +
  280. +sdiff.o: sdiff.c
  281. +    $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -DDIFF_PROGRAM=@"diff.ttp@" $(srcdir)/sdiff.c
  282. +
  283. +TAGS: $(srcs)
  284. +    etags $(srcs)
  285. +
  286. +clean:
  287. +    rm -f *.o diff.ttp diff3.ttp sdiff.ttp cmp.ttp core
  288. +
  289. +mostlyclean: clean
  290. +
  291. +distclean: clean
  292. +    rm -f Makefile config.status
  293. +
  294. +realclean: distclean
  295. +    rm -f TAGS *.info*
  296. +
  297. +install: all
  298. +    for p in diff.ttp diff3.ttp sdiff.ttp cmp.ttp; \
  299. +    do $(INSTALL_PROGRAM) $$p $(bindir)/$(binprefix)$$p; done
  300. +#    cd $(srcdir); for f in diff.info*; \
  301. +#    do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  302. +
  303. +uninstall: all
  304. +    for p in diff.ttp diff3.ttp sdiff.ttp cmp.ttp; \
  305. +    do rm -f $(bindir)/$(binprefix)$$p; done
  306. +#    rm -f $(infodir)/diff.info*
  307. +
  308. +dist: $(distfiles)
  309. +    echo diff-`sed -e '/version_string/!d' -e 's/[^0-9]*\([0-9a-z.]*\).*/\1/' -e q version.c` > .fname
  310. +    rm -rf `cat .fname`
  311. +    mkdir `cat .fname`
  312. +    ln $(distfiles) `cat .fname`
  313. +    for file in $(distfiles); do \
  314. +      if [ ! -r `cat .fname`/$$file ]; then cp -p $$file `cat .fname`; fi \
  315. +    done
  316. +    tar chZf `cat .fname`.tar.Z `cat .fname`
  317. +    rm -rf `cat .fname` .fname
  318. +
  319. +# Prevent GNU make v3 from overflowing arg limit on SysV.
  320. +#.NOEXPORT:
  321. diff -r -u --new-file diff-2.0/sdiff.c diff-20.st/sdiff.c
  322. --- diff-2.0/sdiff.c    Thu Sep 17 16:14:38 1992
  323. +++ diff-20.st/sdiff.c    Fri Sep 18 20:50:30 1992
  324. @@ -97,6 +97,11 @@
  325.  static void
  326.  usage ()
  327.  {
  328. +#ifdef atarist
  329. +  struct option *ptr;
  330. +  int i;
  331. +#endif
  332. +
  333.    fprintf (stderr, "Usage: %s [options] from-file to-file\n", prog);
  334.    fprintf (stderr, "Options:\n\
  335.         [-abBdHilstv] [-I regexp] [-o outfile] [-w columns]\n\
  336. @@ -105,6 +110,28 @@
  337.         [--ignore-space-change] [--ignore-blank-lines] [--ignore-all-space]\n\
  338.         [--suppress-common-lines] [--left-column] [--output=outfile]\n\
  339.         [--version] [--width=columns]\n");
  340. +
  341. +#ifdef atarist
  342. +  ptr = &longopts[0];
  343. +  i = 0;
  344. +  fprintf (stderr, "Equivalent short and long options:\n");
  345. +  while (ptr->name)
  346. +    {
  347. +      if (ptr->val > 0x20 && ptr->val < 0x7f)
  348. +    {
  349. +      fprintf (stderr, " %c<=>%-21.21s", (char)(ptr->val), ptr->name);
  350. +      i++; 
  351. +    }
  352. +      ptr++;
  353. +      if (i == 3)
  354. +    {
  355. +      i = 0;
  356. +      fputc ('\n', stderr);
  357. +    }
  358. +    }
  359. +  fputc ('\n', stderr);
  360. +#endif
  361. +
  362.    exit (2);
  363.  }
  364.  
  365. @@ -393,6 +420,10 @@
  366.    int version_requested = 0;
  367.    char *editor = getenv ("EDITOR");
  368.    char *differ = getenv ("DIFF");
  369. +
  370. +#ifdef atarist
  371. +  _binmode (1);
  372. +#endif
  373.  
  374.    prog = argv[0];
  375.    if (editor)
  376. diff -r -u --new-file diff-2.0/version.c diff-20.st/version.c
  377. --- diff-2.0/version.c    Fri Sep 18 07:27:22 1992
  378. +++ diff-20.st/version.c    Fri Sep 18 20:08:26 1992
  379. @@ -1,3 +1,7 @@
  380.  /* Version number of GNU diff.  */
  381.  
  382. +#ifdef atarist
  383. +char *version_string = "2.0 for atariST";
  384. +#else
  385.  char *version_string = "2.0";
  386. +#endif
  387.